(function(){
	   var page = 1;
	   function getListJson(fn){
		    $.ajax({
		    	url : '../../portal/column/findInformationList.json?queryClassifyId=DISPLAY_ROOT_ID&pageSize=9&currentPage='+page,
		    	type : 'get',
		    	dataType : 'json',
		    	success : function(result){
		    	   if(result.success){
		    		   pavilionList = _.template($("#pavilionList").html())(result.data);
		    		   $('.pavilion-list').html(pavilionList);
		    		   var maxPage = result.data.maxPage || 1;
		    		   fn && fn(maxPage);
		    	   }
		    	}
		    })
	   }
	   getListJson(pageComponents);
 //将翻页组件提出来
	function pageComponents(maxPage){
	   var maxPage = maxPage;
	   //将翻页组件插入进来
	   var components = new PageNum(maxPage);
	   //为翻页添加事件；
	   components.events(function(num){
	   		 page = num;
	   		 getListJson();
	   	  })
	  }
})()